//
//  HZMallHttpManager.h
//  app
//
//  Created by 刘华舟 on 15/5/21.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "HZHttpRequestURL.h"

@class HZRemoteResult;

static float kMallHotKeyWordsDataCacheValidableTime = 24*60*60.0f;

@interface HZMallHttpManager : NSObject


+ (instancetype)shareHttpRequestMananger;

//是否网络通
- (BOOL)networkReachable;

/*************************商城首页****************************/



/*************************商城分类****************************/
//搜索商品
- (void)searchGoodsWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;
//加载更多搜索结果
- (void)loadMoreSearchGoodsWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;
//加载热搜词汇
- (void)loadHotSearchKeyWordsWithResult:(HZRemoteResult *)remote;


//加载某分类下商品列表
- (void)loadCategoryGoodsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;
//加载更多某分类下商品列表
- (void)loadMoreCategoryGoodsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;

//加载特卖商品列表
- (void)loadTeMaiGoodsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;
//加载更多特卖商品活动列表
- (void)loadMoreTeMaiGoodsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;

//加载某商品的详情数据
- (void)loadGoodsDetailsWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;

//把商品添加到收藏
- (void)addProductToFavoriteWithParams:(NSDictionary *)params resutl:(HZRemoteResult *)remote;

//加载某商品评论列表
- (void)loadProductCommentsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;
//加载更多某商品评论列表
- (void)loadMoreProductCommentsListWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;



//加载商品分类
- (void)loadFindGoodsCategoriesWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote;

//向购物车里面添加商品
- (void)addProductToCartWithParams:(NSDictionary *)params result:(HZRemoteResult *)remote needBuyNow:(BOOL) isBuyNow;




@end
